package cn.ubeta.b2c.bean;

/**
 * Created by liudengyong on 16/9/5.
 */

public class ApiResp<T> {

    private boolean success;
    private int rc;
    private String errMsg;
    private T rv;

    public static ApiResp getTest() {
        ApiResp resp = new ApiResp();
        resp.success = true;
        return resp;
    }

    public T getData() {
        return rv;
    }

    public boolean isSuccess() {
        return success;
    }

    public int getErrCode() {
        return rc;
    }

    public String getErrMsg() {
        return errMsg;
    }
}
